home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPTASK.ZIP / APPTOOLS.C < prev    next >
C/C++ Source or Header  |  1993-02-13  |  756b  |  21 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6. #include "apptask.h"
  7.  
  8. /*----------------------------------------------------------------------------*/
  9. /* FUNCTION: OkMsgBox(char *szCaption, char *szFormat, ...)             */
  10. /*                                                                            */
  11. /* PURPOSE:  Display in an OKmessageBox a given text                       */
  12. /*----------------------------------------------------------------------------*/
  13. VOID OkMsgBox(char *szCaption, char *szFormat, ...)
  14.     {
  15.     char *pArguments;
  16.  
  17.     pArguments = (char *) &szFormat + sizeof(szFormat);
  18.     vsprintf(szBuffer, szFormat, pArguments);
  19.     MessageBox(NULL, szBuffer, szCaption, MB_OK);
  20.     }
  21.